import java.awt.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author ShenTuZhiGang
 * @version 1.0.0
 * @email 1600337300@qq.com
 * @date 2021-09-26 21:32
 */
public class ExamTencent2021092605 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        char[][] map = new char[n][n];
        int[][] vis = new int[n][n];
        for (int i = 0; i < n; i++) {
            String s = scanner.nextLine();
            map[i] = s.toCharArray();
        }
        List<List<Point>> ans = new ArrayList<>();
        int count = 0;
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++) {
                if (map[i][j] == '*') {
                    if (vis[i][j] == 0) {
                        ans.add(new ArrayList<>());
                        vis[i][j] = ++count;
                        //todo 标记点
                    }
                    ans.get(vis[i][j] - 1).add(new Point(i, j));
                }
            }
        }
        // todo 统计
        for (List<Point> list : ans) {
            for (Point p : list) {

            }
        }
    }
}
